package com.rockxin.cat.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.rockxin.cat.R;

import java.util.List;

/**
 * Created by cat on 18-3-1.
 */

public class PlatformNoticeAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public PlatformNoticeAdapter(int layoutResId, @Nullable List<String> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder viewHolder, String item) {
        viewHolder.setText(R.id.tv_title, "新春有好礼")
                .setText(R.id.tv_date, "活动时间：20181212");
    }
}
